package com.mpsc.multi.source.controller;


import com.mpsc.api.bean.UserInfoEntity;
import com.mpsc.multi.source.service.UserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userInfo")
@Api(value = "UserInfoController", tags = "用户管理")
public class UserInfoController  {

    @Autowired
    private UserInfoService userInfoService;

    @PostMapping("/saveUserInfo")
    @ApiOperation("保存用户信息")
    public void saveUserInfo(@RequestBody UserInfoEntity user){
        userInfoService.saveUserInfo(user);
    }
}
